<template>
	<view class="content">
		<view class="header">
			<view class="title">
				<u-icon name="arrow-left" color="#FFFFFF" size="36" @tap="nextPage(`/pages/my/my?type=big`)"></u-icon>
				<text>{{title}}</text>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	props:{
		title:{
			type:String,
			default:'我的发布'
		}
	},
	components:{
		
	},
	data() {
		return {
			
		}
	},
	methods: {
		//跳转列表对应页面
		nextPage(url) {
			uni.navigateTo({
				url: url,
				fail() {
					uni.switchTab({
						url: url,
						fail() {
							uni.showToast({
								title: '暂未开通，敬请期待！',
								icon: 'none'
							});
						}
					});
				}
			});
		}
	}
}
</script>

<style lang="scss" scoped>
.content{
	background: linear-gradient(90deg, #52B8B2 0%, #5EC8A3 100%);
	.header{
		.title{
			position: relative;
			width: 100%;
			height: 120rpx;
			line-height: 120rpx;
			text-align: center;
			.u-icon{
				position: absolute;
				height: 120rpx;
				left: 20rpx;
			}
			text{
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #FFFFFF;
			}
		}
	}
}
</style>

